# CMake package configuration file for the plugin '@PROJECT_NAME@'

@PACKAGE_GUARD@
@PACKAGE_INIT@

set(GEOMAGIC_HAVE_OPENHAPTICS "@GEOMAGIC_HAVE_OPENHAPTICS@")

find_package(Sofa.Config QUIET REQUIRED)
find_package(Sofa.Component.Controller QUIET REQUIRED)
find_package(Sofa.Component.IO.Mesh QUIET REQUIRED)
find_package(Sofa.Component.StateContainer QUIET REQUIRED)
find_package(Sofa.Component.Mapping.NonLinear QUIET REQUIRED)
find_package(Sofa.GL.Component.Rendering3D QUIET REQUIRED)
find_package(Sofa.Component.Haptics REQUIRED)

if(GEOMAGIC_HAVE_OPENHAPTICS)
    find_package(OpenHaptics QUIET REQUIRED)
endif()

if(NOT TARGET @PROJECT_NAME@)
    include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
endif()

set(@PROJECT_NAME@_INCLUDE_DIRS  @CMAKE_CURRENT_SOURCE_DIR@/../
                                 @OPENHAPTICS_INCLUDE_DIR@)

check_required_components(@PROJECT_NAME@)
